package ${location}.model.entities;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
${entityImportClass}

/**
 * @author ${author}
 */
@Data
@TableName(value = "${tableName}")
@ApiModel(value = "${tableName}<#if tableComment != tableName>, ${tableComment}<#else > 表对应实体</#if>")
@AllArgsConstructor
@NoArgsConstructor
public class ${className} implements Serializable {
<#list list as column>

    <#if column.apiModelProperty != ''>
    ${column.apiModelProperty}
    </#if>
    <#if column.tableId != ''>
    ${column.tableId}
    </#if>
    <#if column.tableField !=''>
    ${column.tableField}
    </#if>
    <#if column.jsonFormat != ''>
    ${column.jsonFormat}
    </#if>
    private ${column.javaType} ${column.camelName};
</#list>

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;
}
